var NodeOperator = require('geoNodeOperator');

cc.Class({
    extends: cc.Component,

    properties: {
        nodeOperator:{
            default:null,
            type:NodeOperator,
        }
    },

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {},

    start () {

    },

    onInvalidAreaTap(e, item, location){
        // 点击非道具区域时，关闭操作器
        this.nodeOperator.close();
    },

    onItemTap(e, item){
        // 点击道具时，激活操作器
        this.nodeOperator.open(item);
    },


    // update (dt) {},
});
